package com.example.order_product.Service;

import com.example.order_product.Entity.Order;
import com.example.order_product.Entity.Product;

import java.util.List;

public interface ProductService {
    Product findProductByProductId(int productId);

    Product findProductByOrder(Order order);

    Product findProductByName(String name);

    void addProduct(Product product);

    void deleteProduct(int id);

    void updateProduct(Product product);

    List<Product> getAllProduct();

    List<Order> findOrderByProductId(int id);
}
